package com.cloudlinkscm.loms.services.base.notify.domain.notifier;

import com.cloudlinkscm.loms.services.base.notify.model.Notification;
import com.cloudlinkscm.loms.services.base.notify.model.NotificationResult;

/**
 * 消息分发器
 *
 * @author : tac
 * @date : 2017/6/16
 */
public interface Dispatcher<NOTIFICATION extends Notification, RESULT extends NotificationResult> {

    /**
     * 发送消息，并同步返回结果
     */
    RESULT dispatch(NOTIFICATION notification);
}
